import request from '@/utils/request'

export function getActionTypes () {
  return request({
    url: '/api/Business/BusinessManage/GetActionTypes',
    method: 'get',
  })
}

export function getOperatorChoices () {
  return request({
    url: '/api/Business/BusinessManage/GetOperatorChoices',
    method: 'get',
  })
}

export function getBusiness (id) {
  return request({
    url: '/api/Business/BusinessManage/GetBusiness',
    method: 'get',
    params: { id }
  })
}

export function getBusinesses () {
  return request({
    url: '/api/Business/BusinessManage/GetBusinesses',
    method: 'get',
  })
}

export function saveForm (data) {
  return request({
    url: '/api/Business/BusinessManage/SaveForm',
    method: 'post',
    data
  })
}